package com.erp.freight.domain.bo;

import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Erp物流服务线路与运费模版对应关系业务对象 erp_logistics_service_info_template_relation
 *
 * @author erp
 * @date 2023-07-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpLogisticsServiceInfoTemplateRelationBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 运输方式编号
     */
    @NotBlank(message = "运输方式编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logisticsServiceId;

    /**
     * 运费模版值，对应字典表erp_product_template
     */
    @NotBlank(message = "运费模版值，对应字典表erp_product_template不能为空", groups = { AddGroup.class, EditGroup.class })
    private String erpProductTemplateValue;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
